package com.example.filefusion.entity;

public class FileChunk {
    private String identifier;  // 文件唯一标识符（MD5）
    private long chunkNumber;   // 当前分片编号
    private long totalChunks;   // 总分片数
    private long chunkSize;     // 分片大小
    private long totalSize;     // 文件总大小
    private String filename;    // 文件名
    private String relativePath; // 相对路径
    
    // Getter and Setter methods
    public String getIdentifier() {
        return identifier;
    }
    
    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }
    
    public long getChunkNumber() {
        return chunkNumber;
    }
    
    public void setChunkNumber(long chunkNumber) {
        this.chunkNumber = chunkNumber;
    }
    
    public long getTotalChunks() {
        return totalChunks;
    }
    
    public void setTotalChunks(long totalChunks) {
        this.totalChunks = totalChunks;
    }
    
    public long getChunkSize() {
        return chunkSize;
    }
    
    public void setChunkSize(long chunkSize) {
        this.chunkSize = chunkSize;
    }
    
    public long getTotalSize() {
        return totalSize;
    }
    
    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }
    
    public String getFilename() {
        return filename;
    }
    
    public void setFilename(String filename) {
        this.filename = filename;
    }
    
    public String getRelativePath() {
        return relativePath;
    }
    
    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }
}